package com.bytecodezz.app.sketch.common.base

import android.content.Context
import android.widget.TextView
import com.bytecodezz.app.base.framework.base.adapter.BaseAdapter
import com.bytecodezz.app.base.framework.base.adapter.BaseViewHolder
import com.bytecodezz.app.sketch.common.R

/**
 * @author: bytecodezz
 * @version: 1.0
 * @time: 2021/9/22 10:42
 * @package: com.bytecodezz.app.common.commonbase.base
 *
 * @description:
 *
 */
class TestAdapter(context: Context, testData: List<String>) :
    BaseAdapter<String>(context, R.layout.common_base_item_test_adapter_layout) {
    init {
        appendData(testData)
    }

    override fun convert(
        holder: BaseViewHolder,
        itemData: String,
        position: Int,
        payloads: List<String>
    ) {
        holder.getView<TextView>(R.id.item_test_title_tv)?.text = itemData
    }
}